package purchase

import (
	"github.com/gogf/gf/v2/frame/g"
	"time"
)

// 首页查询
type SearchReq struct {
	g.Meta          `path:"/list" tags:"购票相关" method:"get" summary:"查询指定演出日期的演出信息"`
	PerformanceDate time.Time `json:"performanceDate" dc:"演出日期"`
}

// 购买请求
type PurchaseReq struct {
	g.Meta        `path:"/order" tags:"购票相关" method:"get" summary:"购票操作"`
	PerformanceId int    `json:"performanceId" dc:"演出节目ID"`
	TicketType    int    `json:"ticketType" dc:"票类型(1甲、2乙、3丙)"`
	Num           int    `json:"num" dc:"购买数量"`
	Name          string `json:"name" dc:"姓名"`
	Phone         string `json:"phone" dc:"手机号"`
}
